﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETA.EntityMappings
{
    public class ReferrerLogMap : ClassMap<ReferrerLog>
    {
        public ReferrerLogMap()
        {
            Id(x => x.ReferrerLogId);
            Map(x => x.UserId);
            Map(x => x.UserName);
            Map(x => x.Point);
            Map(x => x.UsedPoint);
            Map(x => x.CreateDate);
           References(x => x.Referrer).Column("ReferrerId")
          .Cascade.All();
        }
    }
}
